#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public:
    void init_network();
    void ready_read();

public slots:
    void connect_ok();

private:
    Ui::Widget *ui;
    QTcpSocket* m_ptcpsocket;

};
#endif // WIDGET_H
